package com.wn.icloud.provider.uac.service.impl;

import com.wn.icloud.provider.uac.entity.LinkUserEnterprise;
import com.wn.icloud.provider.uac.mapper.LinkUserEnterpriseDao;
import com.wn.icloud.provider.uac.service.LinkUserEnterpriseService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 用户企业关联表(LinkUserEnterprise)表服务实现类
 *
 * @author makejava
 * @since 2020-04-24 22:23:02
 */
@Service("linkUserEnterpriseService")
public class LinkUserEnterpriseServiceImpl implements LinkUserEnterpriseService {
    @Resource
    private LinkUserEnterpriseDao linkUserEnterpriseDao;

    /**
     * 查询多条数据
     *
     * @param offset 查询起始位置
     * @param limit 查询条数
     * @return 对象列表
     */
    @Override
    public List<LinkUserEnterprise> queryAllByLimit(int offset, int limit) {
        return this.linkUserEnterpriseDao.queryAllByLimit(offset, limit);
    }

    /**
     * 新增数据
     *
     * @param linkUserEnterprise 实例对象
     * @return 实例对象
     */
    @Override
    public LinkUserEnterprise insert(LinkUserEnterprise linkUserEnterprise) {
        this.linkUserEnterpriseDao.insert(linkUserEnterprise);
        return linkUserEnterprise;
    }


}